package edu.yctc.kc.constant;

import java.util.List;

import com.google.common.collect.ImmutableList;

/**
 * 
 * @className Type
 * @description 类型枚举
 * @author zyj
 * @date 2019年12月28日
 *
 */
public class Type {

    public static final String BUSINESS_CLASS = "商务舱";
    public static final String ECONOMY_CLASS = "经济舱";

    public static final List<String> ALL_TYPE = ImmutableList.of(BUSINESS_CLASS, ECONOMY_CLASS);

    public static boolean isLegal(String type) {
        for (String string : ALL_TYPE) {
            if (string.equals(type)) {
                return true;
            }
        }
        return false;
    }

}
